using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace MMM.Services.Type
{
    [Serializable]
    [Route("/api/educationinfo", "POST,PUT")]
    public class EducationInfo : EntityBase<EducationInfo>
    {
        /// <summary>
        /// 教育类型
        /// </summary>
        [StringLength(50)]
        [Required]
        public String EducationType { get; set; }
        /// <summary>
        /// 教育名称
        /// </summary>
        [StringLength(50)]
        [Required]
        public String EducationName { get; set; }
        /// <summary>
        /// 学校
        /// </summary>
        [StringLength(50)]
        [Required]
        public String School { get; set; }
        /// <summary>
        /// 专业
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Major { get; set; }
        /// <summary>
        /// 研读时间
        /// </summary>
        [StringLength(50)]
        public String StudyTime { get; set; }
        /// <summary>
        /// 证书
        /// </summary>
        [StringLength(50)]
        public String Certificate { get; set; }
        /// <summary>
        /// 颁证单位
        /// </summary>
        [StringLength(50)]
        public String CertAuthority { get; set; }
        /// <summary>
        /// 颁证日期
        /// </summary>
        public DateTime CertDate { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        [StringLength(50)]
        public String Period { get; set; }
        /// <summary>
        /// 员工Id
        /// </summary>        
        [Required]
        public Guid EmpId { get; set; }
        /// <summary>
        /// 员工姓名
        /// </summary>
        [StringLength(50)]
        [Required]
        public String EmpName { get; set; }
    }
}
